<?php

namespace app\interfaces\model;

use think\Model;

class BrandType extends Model
{
    public function brand_list()
    {
        return $this->hasMany('brand', 'type_id', 'id')->where(['recommend' => '1', 'shop_id' => ['neq', '']])
            ->field('picUrl,shop_id')->order(['sort' => 'desc', 'id' => 'desc'])->limit('8');
    }
}
